
<script type="text/javascript">
    jQuery(document).ready(function() {
    var sheepItForm = jQuery('#sheepItFormEntrega').sheepIt({
        separator: '',
        allowRemoveLast: true,
        allowRemoveCurrent: true,
        allowRemoveAll: true,
        allowAdd: true,
        allowAddN: true,
        maxFormsCount: 20,
        minFormsCount: 0,
        iniFormsCount: 1
    });
});
</script>
<script type="text/javascript">
           jQuery(document).ready(function(){
               // binds form submission and fields to the validation engine
               jQuery("#HojasrutaNuevotrabajoForm").validationEngine();
               jQuery("#fecha_inc" ).datepicker();
           });
 </script>
<!-- Columns -->
<div id="cols" class="box"> 
    <!-- Aside (Left Column) -->
    <div id="aside" class="box">
        <div class="padding box"> 
            <!-- Logo (Max. width = 200px) -->
            <p id="logo"><a href="#"><?php echo $this->Html->image('logo.gif',
array('alt' => 'logo')) ?></a></p>
            <!-- Search -->
            
        </div>
        <!-- /padding -->
 <ul class="box">
            <li><?php echo $this->Html->link('LISTA DE ENTREGAS DE MATERIAL', array('action'=> 'index')); ?></li>
            <li id="submenu-active"><a href="#">REGISTRO NUEVA ENTREGA</a></li>
            
        </ul>    </div>
    <!-- /aside -->
    <hr class="noscreen" />
    <!-- Content (Right Column) -->
    <div id="content" class="box">
        <h1>NOTA DE ENTREGA </h1>
       <!-- Form -->
   <fieldset>
        <legend>Datos</legend>
        <?php echo $this->Form->create('Notamyentrega'); ?>
        <table width="715">
        	<tr>
	       		<td colspan="5"><h2 align="center">NOTA DE ENTREGA </h2></td> 	
        	</tr>
            <tr>              
              <td>Sucursal:</td>
              <td><?php echo $this->Form->select('sucursal_id',$sucursales) ?></td>  
              <td>Fecha:</td>
              <td><?php echo $this->Form->text('fecha',array('id'=>'fecha_inc')) ?></td>  
              <td>Nro Entrega: <?php echo $numero;?>
              <?php echo $this->Form->text('numero',array('size'=>'4','style'=>'padding:0 5px')) ?></td>  
          </tr>
        	<tr>
        	<td colspan="5">
	        		<!-- sheepIt Form -->
                <div id="sheepItFormEntrega">
                  <!-- Form template-->
                <div id="sheepItFormEntrega_template" class="sheep-entrega">
            		      <label for="sheepItFormEntrega#index#_phone">Tipo: <span id="sheepItFormB_label"></span></label>
                    <?php echo $this->Form->select(null,$tipo, array('name'=>"data[Entrega][#index#][tipo]",'class'=>'venta-qty'));?>
                    <label for="sheepItFormEntrega#index#_phone">Cantidad: <span id="sheepItFormB_label"></span></label>
                    <?php echo $this->Form->text(null, array('name'=>"data[Entrega][#index#][cantidad]",'class'=>'venta-qty'));?>
                    <label for="sheepItFormEntrega#index#_phone">Detalle: <span id="sheepItFormB_label"></span></label>
                    <?php echo $this->Form->select(null,$tipo1, array('name'=>"data[Entrega][#index#][detalle]",'class'=>'venta-qty'));?>
                    <label for="sheepItFormEntrega#index#_phone">tipo: <span id="sheepItFormB_label"></span></label>
                    <?php echo $this->Form->select(null,$tipo2, array('name'=>"data[Entrega][#index#][tipo1]",'class'=>'venta-qty'));?>
                    <label for="sheepItFormEntrega#index#_phone">Tama&ntilde;o: <span id="sheepItFormB_label"></span></label>
                    <?php echo $this->Form->text(null, array('name'=>"data[Entrega][#index#][tamano]","class"=>"validate[required] input-text venta-size"));?>
                    <label for="sheepItFormEntrega#index#_phone">Peso: <span id="sheepItFormB_label"></span></label>
                    <?php echo $this->Form->text(null, array('name'=>"data[Entrega][#index#][peso]","class"=>"validate[required] input-text entrega-weight"));?>
                   
                <div id="sheepItFormEntrega-select">
                <a id="sheepItFormEntrega_remove_current"><?php echo $this->Html->image('buttons/cross.png',array('class'=>'delete'))?></a>
                </div>
                </div>
                <!-- /Form template-->
                <!-- No forms template -->
                <div id="sheepItFormEntrega_noforms_template">Sin Tipo de Productos</div>
                <!-- /No forms template-->
                <!-- Controls -->
                <div id="sheepItFormEntrega_controls">
                <div id="sheepItFormEntrega_add" class="btn form add"><a><span>A&ntilde;adir</span></a></div>
                <div id="sheepItFormEntrega_remove_last" class="btn form remove"><a><span>Remover</span></a></div>
                 <div id="sheepItFormEntrega_remove_all" class="btn form removeAll"><a><span>Remove todos</span></a></div>
                  </div>
                  <!-- /Controls -->
                </div>
                <!-- /sheepIt Form -->
        	</td>
        	</tr>
        	
<table width="715">

	        	
        	
        
          
          <tr>
             <td>Encargado:</td>
             <td><?php echo $this->Session->read('nombre_usuario');?><?php echo $this->Form->hidden('usuario_id',array('value'=>$this->Session->read('usuario_id')));?></td>
          </tr>
         
          <tr>
            <td></td>
             <td class="t-right">
             <?php $option = array('Value' => 'Aceptar', 'class' =>
            "input-submit"); ?>
             <?php echo $this->Form->end($option); ?>
            </td>
          </tr>
       </table>
     
    </fieldset>
      
          
    <!-- /fin form --> 
        <div class="grid-buttons">
                     <!--<div class="title-grid"><span>Acciones</span></div>-->
            <div class="content-gird">
                    <div style="float: left;">
                        <input type="button" class="button" value="Atras" onclick="javascript:history.back();" /> 
                    </div>
                <div class="clear"> </div>
            </div>

        </div>

    </div>
    <!-- /content --> 

</div>
<!-- /cols -->

